//
//  ViewController.h
//  NSOperDemo
//
//  Created by kingboyrang on 2021/11/19.
//  Copyright © 2021 wulanzhou. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

//NSInvocationOperation使用
- (IBAction)btn1Click:(id)sender;
//NSBlockOperation使用
- (IBAction)btn2Click:(id)sender;
//NSInvocationOperation和NSOperationQueue组合
- (IBAction)btn3Click:(id)sender;
//NSBlockOperation和NSOperationQueue组合
- (IBAction)btn4Click:(id)sender;
//自定义NSOperation使用
- (IBAction)btn5Cllick:(id)sender;
//自定义NSOperation和NSOperationQueue组合
- (IBAction)btn6Click:(id)sender;
//控制任务并发和串行
- (IBAction)btn7Click:(id)sender;
//启动任务
- (IBAction)btn8Click:(id)sender;
//暂停
- (IBAction)btnPauseClick:(id)sender;
//恢复
- (IBAction)btnRecoverClick:(id)sender;
//取消
- (IBAction)btnCancelClick:(id)sender;
//依赖操作
- (IBAction)btnRelyClick:(id)sender;
//NSOperation实现线程间通信
- (IBAction)btnCommClick:(id)sender;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;


@end

